home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000443_news@watsun.cc.columbia.edu _Sun Apr 18 13:51:49 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA06882
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 18 Apr 1999 13:51:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA06748
  7.     for kermit.misc@watsun.cc.columbia.edu; Sun, 18 Apr 1999 13:32:31 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: Mark Sapiro <msapiro@value.net>
  10. Subject: Re: Can kermit take its configuration from stdin? (Unix)
  11. Date: Sun, 18 Apr 1999 10:34:56 -0700
  12. Organization: Not Very Much
  13. Message-ID: <371A17C0.3894FCEE@value.net>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. Frank da Cruz wrote:
  17. >>>
  18. In article <7f60oo$ihc$1@nnrp1.dejanews.com>,
  19.  <john_cosimano@my-dejanews.com> wrote:
  20. >>>
  21. In article <7f5gkv$r1o$1@newsmaster.cc.columbia.edu>,
  22.   fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote:
  23. > In article <7f5f9b$2vp$1@nnrp1.dejanews.com>,
  24. >  <john_cosimano@my-dejanews.com> wrote:
  25. > : I am trying to figure out if there is a way to have kermit take its
  26. > : configration file from stdin.
  27. >
  28. > : > No.  Why not just pass the device name on the command line?  Example:
  29. >
  30. >   kermit -l /dev/ttyS0
  31. >
  32. > Or in a shell script:
  33. >
  34. >   kermit -l $1
  35.  
  36. Yeah, that's what I'm doing now. I have a bunch of configuration files, and I
  37. wrote my wrapper script so that kermit gets called like: `kermit -y
  38. /usr/lib/kermit/configs/some_config_file`. The problem I was looking to solve
  39. is that if I want to make a change to the configuration files, I now have 256
  40. files on which to make the change. I figured if I could make kermit get it's
  41. configuration from stdin, I would only have one file...
  42.  
  43. Oh, well, there is more than one way to skin a cat
  44. <<<
  45.  
  46. Indeed.  If you can describe the actual problem you are trying to solve,
  47. maybe I can be more helpful.
  48.  
  49. - Frank
  50. <<<
  51.  
  52. John's original post said "The only configuration directive that
  53. needs to change from file to file is the set line /dev/ttyC#."
  54.  
  55. If this is in fact the case, it is hard to see why simply removing the
  56. set line directive from the configuration file and using the -l option
  57. on the command line won't work.
  58.  
  59. However, if there is really a need to have kermit read a dynamically
  60. built initialization file, why not just build it in the wrapper script
  61. and then write it to say /tmp/process-number.ksc and then invoke kermit
  62. with "kermit -y /tmp/process-number.ksc".
  63.  
  64. -- 
  65. Mark Sapiro <msapiro@value.net>       The highway is for gamblers,
  66. San Francisco Bay Area, California    better use your sense - B. Dylan